package com.zhuoyue.biz.core.command.cmd.common.scene;
import com.zhuoyue.common.utils.CmdUtils;
/**
 * @author wjming
 * @ClassName: SceneExecuteCmd
 * @Description: 场景执行cmd
 * @Date 2021-07-06 17:06
 */
public class SceneExecuteCmd {
    /**
     * 网关Mac
     */
    private String gatewayMac;
    private String sceneCode;

    public String getGatewayMac() {
        return gatewayMac;
    }

    public void setGatewayMac(String gatewayMac) {
        this.gatewayMac = gatewayMac;
    }

    public String getSceneCode() {
        return sceneCode;
    }

    public void setSceneCode(Integer sceneCode) {
        this.sceneCode = CmdUtils.intToHexTwo(sceneCode);
    }

    public SceneExecuteCmd getSceneExecuteCmd(String gatewayMac, Integer sceneCode) {
        this.gatewayMac = gatewayMac;
        setSceneCode(sceneCode);
        return this;
    }
}
